package com.virtualCat.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.virtualCat.util.CustomDateSerializer;

import java.io.Serializable;
import java.util.Date;

public class Feed implements Serializable {
    private String openid;
    private int catid;
    private int feedCount;
    @JsonSerialize(using = CustomDateSerializer.class)
    private Date feedTime;
    private int shareCount;
    private int discover;
    private int growth;

    public Feed(){}

    public Feed(String openid, int catid, int feedCount, Date feedTime, int shareCount, int discover, int growth) {
        this.openid = openid;
        this.catid = catid;
        this.feedCount = feedCount;
        this.feedTime = feedTime;
        this.shareCount = shareCount;
        this.discover = discover;
        this.growth = growth;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public int getCatid() {
        return catid;
    }

    public void setCatid(int catid) {
        this.catid = catid;
    }

    public int getFeedCount() {
        return feedCount;
    }

    public void setFeedCount(int feedCount) {
        this.feedCount = feedCount;
    }

    public Date getFeedTime() {
        return feedTime;
    }

    public void setFeedTime(Date feedTime) {
        this.feedTime = feedTime;
    }

    public int getShareCount() {
        return shareCount;
    }

    public void setShareCount(int shareCount) {
        this.shareCount = shareCount;
    }

    public int getGrowth() {
        return growth;
    }

    public void setGrowth(int growth) {
        this.growth = growth;
    }

    public int getDiscover() {
        return discover;
    }

    public void setDiscover(int discover) {
        this.discover = discover;
    }

    @Override
    public String toString() {
        return "Feed{" +
                "openid='" + openid + '\'' +
                ", catid=" + catid +
                ", feedCount=" + feedCount +
                ", feedTime=" + feedTime +
                ", shareCount=" + shareCount +
                ", discover=" + discover +
                ", growth=" + growth +
                '}';
    }
}
